<!-- Main content -->
<div>
    <!-- Main content -->
    <section class="content" ng-controller="userCtr" ng-init="init()">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="form-group col-sm-3">
                            <label>用户名称</label>
                            <input class="form-control"
                                   ng-model="queryParam.name">
                        </div>
                        <div class="form-group col-sm-3">
                            <label>用户账号</label>
                            <input class="form-control"
                                   ng-model="queryParam.username">
                        </div>
                        <div class="form-group col-sm-12">
                            <button type="submit" class="btn btn-primary" ng-click="queryUser()">查询</button>
                            <button type="submit" class="btn btn-primary" ng-click="addUser()"
                                    ng-if="user.permitMap.USER_ADD">添加
                            </button>
                            <button type="submit" class="btn btn-primary" ng-click="editUser()"
                                    ng-if="user.permitMap.USER_EDIT">编辑
                            </button>
                            <button type="submit" class="btn btn-primary" ng-click="userRole()"
                                    ng-if="user.permitMap.USER_REF">关联角色
                            </button>
                            <button type="submit" class="btn btn-primary" ng-click="deleteUser()"
                                    ng-if="user.permitMap.USER_DELETE">删除
                            </button>
                            <button type="submit" class="btn btn-primary" ng-click="resetUser()"
                                    ng-if="user.permitMap.USER_RESET">重置用户密码
                            </button>
                        </div>
                        <div class="form-group col-sm-12">
                            <div id="userGird" ui-grid="userGird" ui-grid-pagination ui-grid-auto-resize
                                 ui-grid-empty-base-layer ui-grid-resize-columns ui-grid-selection></div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
</div>
